Split state management into a separate class
Start work on sending notifications