I think the earlySwipe boolean is unnecessary. The only place where we put it to `false` is wrong, therefore I think it will be always  true and therefore unnecessary.