Minor formatting changes + renamed attach() to attach_vars().