Modify code due to changes in chimera plugin