Upgraded Foundation to version 5.1.1