Implements support for adding objects to a queue