Fighting Pirates: Learning from Malacca