Added sanity checking to task routine.
Merge pull request #115 from hawesie/hydro-release

Added sanity checking to task routine.