Changed the status code variable to be $?