Code written for SAZE