Improving scripts for RHEL7