Reorganize code to enable standalone LPC runner