Basic working implementation with simple test driver.