Removed an obsolete check limits function from the code