Added percent validator.
Fixed reference bug and optimized debug messages.