Change error handling to catch method.