added pathExpression to timeFunction to allow calculations