Lots of additions (execute the script with flag -h to see more), cross-platform support.