Ptrace functions moved into own file