made the interval a const and updated some of the logging