added timing control through variable t to slow down simulator beep pace