App works in a single session. Looping is needed