Handling output differently (without console.log)