Relaced echos with returns in functions