Input processing hooks.