Fundamental functional implementation.