Transfering Wire() function to a library is causing watchdog resets :/

What modification would that be, exactly?