Moved sample/helpers into lib.