Reduced console.log to one call