Added main script which I had failed to do earlier