I dont know alot, and I'm a total newbie to this, but what if you try putting wait (1); after beep; ?