Updated library handling according to the changes on the RPC interface.