Pre head/tail removal
Circular logfile added
Top level handling added for circular logfile