Added elapsed time variable.