Changed the selection class, get max magnitude from a range