(This is part of the generated stuff that AM made for me.)