[#13] Merged extract_anil and extract_anir methods.