Another approach to implementation

Figure 1. Profiling stream