Added percent parameter to the program