Moifie code to make classe more reusable and be able to load multiple
profiles at once