Got the script to work, check it
formatting nicely