Modified for eBay Advertising. Tested on CentOS 6 x86_64, Ubuntu 12.04 and Ubuntu 10.04