After Ritter was injured and sent away, Almásy took over command, and organised the 1942 Operation Salam, which succeeded in transporting two German agents across the Libyan Desert behind enemy lines to Egypt. In July 1942, Almásy and his agents were captured by British counterintelligence operatives.[lower-alpha 17]