Removed double range checks in get methods.