Added the declaration for two functions.
Removed the calls to printf().