Adding percent function