Fully functional implementation; minimal testing.