Do not use read function anymore to prevent side effects.