Changed access to Media types' type. Type must now be accessed through getType() function.