Lance clean up

Remove un-needed code in compilation.