Add hooks for sender/receiver to communicate.