Fixed issue with conditional execution (#32).

Also: Improved the debugging output.