Adding basic event listener reigstering, deregistering, and internal call function.