Added resync, rework led indicators, fix beat-ignore calculation, refactor