Updated source code for inbound and outbound

Source code for all the changes made to inbound and outbound plugin.