TG 21.12 sank the . In March 1944, Task Group 22.3 was formed with Guadalcanal as the flagship. On this cruise, Gallery pioneered 24-hour flight operations from escort carriers in order to hunt U-boats, which had begun remaining submerged during daylight to avoid carrier-based aircraft. On April 9, the task group sank , commanded by U-boat ace Kapitänleutnant Werner Henke. After prolonged depth charging, the submarine was forced to the surface among the attacking ships and the surviving crew abandoned ship. The deserted U-515 was hammered by rockets and gunfire before she finally sank. Gallery saw that this would have been a perfect opportunity to capture the vessel. He decided to be ready the next time such an opportunity presented itself. The next night, aircraft from the task group caught on the surface, in broad moonlight, and sank her with one survivor, a lookout caught on-deck when the U-boat crash dived. U-505 On the next cruise of TG 22.3, Gallery took the unusual step of forming boarding parties, in case of another chance to capture a U-boat arose. On June 4, 1944, the task group crossed paths with U-505 off the coast of Africa. U-505 was spotted running on the surface by two Grumman F4F Wildcat fighters from Guadalcanal. Her captain, Oberleutnant Harald Lange, dived the boat to avoid the fighters. But they could see the submerged submarine and vectored destroyers onto her track. The experienced antisubmarine warfare team laid down patterns of depth charges that shook U-505 up badly, popping relief valves and breaking gaskets, resulting in water sprays in her engine room. Based on reports from the engine room, the captain believed his boat to be heavily damaged and ordered the crew to abandon ship, which was done so hastily that full scuttling measures were not completed. Gallery ordered the boarding party from the destroyer escort to board the foundering submarine and if possible capture her. The destroyers in range used their .50 caliber and 20 mm antiaircraft guns to chase the Germans off the vessel so the boarding party could get onto her. Once on board, the party replaced the cover of the sea strainer, thus keeping the U-boat from sinking immediately. The boarders retrieved the submarine's Enigma coding machine and code books. (This was a primary goal of the mission because it would enable the codebreakers in Tenth Fleet to read German signals immediately, without having