Add minimization for df and dt