Made engine and frame into public static fields