Implemented axis restriction