Automatic event binding.