Inserting check on profile existence.