In the early 15th century Haddington was the fourth largest town in Scotland.