Allow content type to be passed