Added stdout logging