Fcm agent in c

Archiving some work