Adding standalone mode and full license to the script.