Added serverside code.