Removed the default print, receive, etc. functions and set them in main.