added option for specifying queue