Add the position checking.