Adding general flow diagram