Fix fns data overwriting issue
Split fn configuration codes into separate file