Updated script, support for spaces might help.