Moved the filling of PulseSample into main to avoid misunderstandings.