Simplifying attach().