Added new profile logic