Added first (not quite-working-yet) version of the script