Added lower bound checking