Change knife() function to fork()