Remove not needed mime checking.
Clean up.