added debugging logs to the initial code base.