Madrid Plans code in right place