ApplySubs() fully tested.