Better ROM type detection. Also other shit.