Making the script work for .yml