Added some working logging statements (fixes #1)