Use println instead of write