Finished initial implementation.