Added warning message for wrong code structures