Added percentile support