Switched to Fortran interface
Added code for event table