Implemented the Between condition