Done  main script functionality.