Non-interactive version