Added public service. Just changed the hitcounter code to use the public service