the toxic compound was a complex carbon ring with a nitrogenous sheet coming off it that looked superficially related to tetrodotoxin , and appeared to be part of the slug 's motility system rather than an anti-predation adaptation .