Added sweep2wake and doubletap2wake features