Print progress messages on startup. Fix some bugs.