Added mime parameter support