Added method to get all modules in a profile.