Created basic flow and stubs for significant functions.