Add debug output statements to determine, what's going on