Fixed the function for calculating the mean free path as a function of time.