Adapted HTML client to API change