Some code for BaiDu Pet