Added ability to specify custom properties as well as compression