Significant changes in configuration

Added profiles usage