There's no need for the write_url here or in line 52