Implemented Beats Logic