Added RedHat support and moved variables to params