Added a nifty initializeTWI function