Create some Error Handling logic