Corrected a few errors. Event id is now of int type.