Updated Foundation 4 with bug fixes