Modified max patch