Fixed it so that minor intervals work too!

usefulgen.py generated a cool table that makes it better.