Changed from TotalSeconds to toalmilliseconds