Using a status enum instead of an integer for the return code.