Issue #199 Return value for tasks