Fixed profile functions again