Figured out the problem with comments. Was passing the in the wrong variable.

#facepalm

Also added the type to the parts list.