Made event handlers optional for spiders