Added ability to customise viewport size