Embedded C code for SIF project