Some code I done a while ago, starting proper fork and stuff