Changed .config to .opts. Fixed scoping to reduce .bind reliance.