Code part of BeepBeep2