Break monitoring code into its own app