Added auto app intialization