Properly sync up environments.