Corrected timing program for testing on PI