Add support for subsmax
Implementing SubsMax