Change stdout behaviour