Madrid plans code