Added new onSend & onReceive callbacks that trigger only once before the actual process starts