Added methods used when creating events on elements.