Added some simple logging

Needs work, though.