Split out dump and clear to their own functions
Add waited time to the process log, closes #1