Changed puts to echo