Made sure that output is properly serialized to console.