Create setTuple helper method