Fixes undefined variable: $time

Turns out actually using the parameters you provide helps