Cleaned up lightcone routines.