Added functionality to add and select profiles