Change to use debug message instead of puts