This needs to be exported from connections.js