Arc max patch: fix bugs, add spread, make advance float