Added HandleEvent timeout argument