Move size setting to constructor