Add beginning of Fortran implementation.