Added server function.
Fixed identation.