Adding in tug code