Added optional Instance to retrieve

Modified the retrieve callback to all you to instanciate your callback
to an object, rather then calling it from the window function.,