Libraries for the gateway