Lantern server side code.