Some code for making background beat in menus.