Added in some error checking for setting STEM and SIM areas