A wrapper to make NSTasks more friendly