Not sure if the problem is the way I've worded my condition, or the way I'm copying the data Relevant code is lines 116-146