Changed to half open interval