you would only need to pass in a "time" value and adjust the values based on that I think. Been a while since I looked at the code but it shouldn't be too difficult to add in.