Adde utility method.
Profile selection improved.
Fixed bad behaviour in profile selection.