I wonder if it would make sense to put this in a separate function. Determining the type of MEG system may be useful for other things.