Changes interval implementation to use Int