Script mostly seems to be working. Now it's time to tweak and customize it