Finish stopping patterns and inputs; flask server