Add logging
Use curl again