CGI require was missing, also moved DEFAULT_INTERVAL out of global scope