Some changes in Profiles.lua