Added the possibility to add custom content to the recv and pass subroutines