Added server time correction code