Fixed sending method. Maybe this should be redone completely.