Better handling of script output and directions added