Copy-pasted in console mode