Derivative check implemented; the majority are correct