Updating controller.py to only listen to controller events.