Added logging framework for debug output