Fix max
Added simple output