Implement setupReceiver function.