Updated to Foundation 5.2.1. Also made Foundation easier to upgrade.