Update lib to be able to be used in the client