Added method from ASMUtils to AMSHelper