Takeover function

Takeover function writen last night. Don`t know if it`s ok.