The archway and gate of the A Formosa fortress , the remains of the 16th-century Portuguese fort next to Stadthuys , is all that stands , saved from total destruction by Sir Stamford Raffles , then a government secretary in Penang .
Sir Raffles was good at his job .