Some Flask changes