Logic with debug errors