Function for adding optimize information to the environment.