Added max param
Added IO dialog max setting
OSX build updates