Check for next beat being an extra beat and log as a miss if it is
Remove redundant variable as flag