Added prepended percent signs and changed function name