Refactory in App class.

Now it's possibible to run more than one time.