Improve ./aa script: 'aif' and 'arf' commands