in reply to Event Recognition seems to be too slow
Put your code between <code> tags. You can still do this, just edit your post