Implemented a working prototype.