Add application_modules/2 function.