Added size management, all sizes are dynamically set by global constant values.