Use wp_remote_get to simplify code