Added support for more then text and html content types for some methods.