Add printInput() function.