Added the text resource handling
Implemented visit counter and restart function