Added program printing functions, which are segfaulting for some reason.