Replaced Timer with Stopwatch for better accuracy