Changed sending algorithm