The eventloc function.