First implementation of the fnc