Added a callback to compose() and added error handling. Also made retrieving an object its own function.