Remove unused send function and correct indentation