Added PreReceive() and PostReceive() support