Added 'queue' for parameter type checking (untested).