Removed pointless checkEnvironment()