Added option to set content type.