Added a few lines to JService and ServiceHandler