Renamed Check_env