Add shebang and fix progress bars.