Phoenix 180

First revision for review.  There are some open points here.  Still no test case added to consume the stats.  Will do the performance test once the system is available with me.
Ok.. I added for doing some testing from my side if the entries are added to the stats table. Will remove them.