Store bound functions so we can remove the event listeners cleanly.