Normalize the environment