Allows the program to be called from a wrapper.