Changed order of curl commands.