Code for SMFU.in