Replaced Time with double