Added logging to services