Adding in a 'TEST_RUN' mode for debugging