Cleaned up the lf template