Master spot sim code