First working version, primitive.