Updated Logic - checks for constants one more time at the end of the
program