Fixed non-termination issue.
Take runtime arguments from language and repl settings.
.