Modifications to work on CentOS6.2