Made the scripts to work