Changed send function to send long[]