Foundation implementation.