Turns out the code wasn't redundant