Added code in fsh.c