Added ability to pass arbitrary properties through as a hash.