Working on prettier error handling.