Has some unit tests now.