Error handling, no more panics.