Added basic skeleton for the script. Figure out a lot of stuff