Final version
Brand new script