Added basis beat detection support