Added checck to make sure cbed position is in simulation limits