Unnecessary debug messages has been removed.