Add patch to formula