Added gesture algorithms