[Refactoring] I've changed names of the methods and variables for better clarity.