Change algorithm of translating statement for afs command