Was an idiot and forgot to adjust function