Add X minutes earlier option to newer function