Function createCompletionGateway