just get the code "one shot give up" offline, pretty sure thats somewhere close to the function he is talking about.