I solved the problem actually. It revolved around catching a bug I wasn't expecting...

Thanks!