Agreed on the the danger of a division by zero (at the moment dt is only used for the integral).