Fix queue object not getting sent correctly. Add debugging.