Fixed readability, caught all exceptions.