4. Some error catching.