Before connecting with Flask