Changed input paramenters of disconnect