Moving eventtap to C.