Added a handler for intents. Finished up for this week.