Updating script to version 3.0

Many thanks to Jeroen and all other people that use/test/report bugs!