Remove useless print.
Add useful functions.