Added queue print function