Maybe we should have a separate class for specifying attribute layouts.