Wrote singular send function, cleaned up a code a little