Changed num() in Eventhandler to handle different race types