Add check for microscope GUI overflow. Fixes #194.