Added root setup method to controllers and updated the environment class.