Added a timeout for a given processing step.

Closes #1.