May be I didn't understand your question completely. So please rephrase if you think answer is not in the right direction:
Solution 1:Divide your function in 2 parts and call the second part when necessary.
OR 2. Pass different value to the function and function can start at the point where you want.