First version of the AGIV parsing script.