Queue: Error checking