Now functional, rotation is buggy.
Fix a service stop bug.
Code clean up.