And a pinch of error handling