Made Date function use long instead of int.