Handling multiple return codes