Add function to run fig inside a serfnode