[wip] Pretty much working, except that it sends a request twice