Fixed problem with interfaces added in reverse order. (#79)