Updated Tone(duration) function to work with SetWaitableTimers and changed the toneRunningOnPin to work with static functions