Cleaned up Max patch/app