Added leftshift_possible function