Move the 5 minute cycle to main.js