Added a way to specify the content type.