Made clearing use config values, fixes #14