Added generic queue wrappers for inputBuffer and outputQueue