Maybe a better way to do console.log