Implemented server vars calculation and transmission in API.