Added basic Foundation 4 support