Added time function to server.