Add new version of fan.c