Wrapping debug log statements with LOG.isDebugEnabled().
Implemented PING functionality.