Added parts variable

Looks like parts variable is being used but it is not declared.