Adding the waitbar.py code.