Change "to" and "downto" to be inclusive