Update foundation to 5.4.0