Added base logic flow diagram