Added simple logging try.