Using the resize function for initialization

Need to do (a lot) more to allow resizing while running and not just on
initialization