Fairly simple problem, had had a stupid oversimplification for a bit.
Pretty easy problem.