Should really be `if`, not `ifelse`, since not vectorised.  And maybe this block should also be wrapped in `if (!quiet)
{}`