public static Memory getMemoryFromId(int id) {
        for (Memory m : memoryOptions) {
            if (m.getSettingsId() == id) {
                return m;
            }
        }
        return DEFAULT_MEM;
    }