Added sub profile checking