Fixes and all functions but main and lucol for fortran.