Make endstops more reliable