Add some stat code
Update work log
Clean up some code