Refractored and updated to CentOS 6.5 machine