Added simple logging