Refactor to use on centos