Chopped up register_events into smaller methods