Added small wrapper around curl