Updated copay algorithm