DERIVATIVES! I just needed to use derivatives.