Updated example to not output in console