Many improvements on application.
Script rewrite and other stuff.