Implement the percent checket to the code