This is the code for the Client code to run as a BOINC application.