Library extracted from Djinn package