Downgraded to earlier version of Foundation to avoid errors