Prepare the entry program.