Added full Foundation support