Queue-based processing