Add ability to run post/pre tasks.