Added example SMF code.