Malacañang on Wednesday stressed the need to continue the modernization of the Armed Forces of the Philippines (AFP) so that the country would not be dependent on its allies.