Added ability to customize output of object