Encapsulating config, set and clear function