Fleshed out the FORTRAN analysis code