Change knife() function to fork() function