Adding flow diagram