Removed debug and updated log.