Added ability to pass an object out of handler