Update Foundation; minor improvements