Added forking function

Does fundamentally nothing useful ATM.