Fixed RAT conversion error and added scripts