One event handler to rule them all.