Added server read function