Use MediaType instead of user-written string