Works up to 999,999 - just millions to do