Add debug message and place protection