Added logging for queueing.