Rewritten using http-kit