Added check_conf function