Initial version, forked from WebFTS