Update the latest code. Now prints and outputs properly.