General improvements to the auto attribute create code.