Tool for handling events