Finalized implementation.