Corrected set_environment to register controller info, analog needs work