Changing names and relocating variable declaration for better readability.