Zaslat SMS: Discrete gauge theory