Set up progressbar and analysisbutton to work