Merging all send functions to one function
Changes for packaging