changed argument type to Time and renamed to Task Gateway