Takeover function

I guess this is how it`s supposed to be. I commented the code