Adds event whitelisting