Common code for Synapse, Sydent and Sygnal
