Code shared by and used for all Loguntu implementations