Now using printf instead of echo