I have written a program which looks profitable. Right now, I am talking with someone, a referral, about putting money to start an account. At first, I thought that it was a proprietary account for just me and him, but he actually wants to begin a fund trading my program. Problem #1: He wants to put me under payroll, implying that I will give up my ownership of the program, something I am hesitant to do. I do not mind him trading my program and keeping the profit, but I do not want him to turn around and sell the program to some one else. Is there some sort of arrangement in which I can maintain ownership? Problem #2: While I have not given him the entire code, I have told him the methodology. I am going to take a patent. Since I have proofs that I am the inventor and that I passed the program to him, I should have legal protection. Nonetheless, what is the likelihood that he will steal the idea and write the code himself?