Begin conversion to Flask; updates.