Implementing the whole thing.