added a minimized version of the script (issue #3).