Added bounds check in thrust_away().