Implemented server function