Some additional checks implemented. Profiles are working as expected now.