Changed the ontimes array to double long to match millis()