Remove all unused code and update share to use send