Preliminary SEM computation...needs more testing