Implement some basic logging
Enough debug info?