Max sizes function added.
Merge branch 'develop'
Merge branch 'master' into gh-pages