Added background code for alliances