addHandler() only adds to a list, and the specifications are generated at the end.