Updated to work on Centos6.5