Added server fragment and some other small fixes.