Make AppName static, it was not getting the AppName.