Modify runtime environment to controller