Add structure for flask