Can now handle multiple intervals.

Added beep for later use