Use function pointer for the print in screen function.