Added the code directly from the RPM