Added promise definition.