Added few debugging statements.