Add two functions deleted by accident

These may be used by the server, who knows. So I'll keep them.