Put the global engine declaration a bit higher, triggered warning.