Bringing the return code out of the script