Revert "Adds range check"

This reverts commit d1c53ec00049b3de20ea8de8e97b6b4ab61e3d61.