Init for Tx script