Added time filter functions.