Added consideration of unused space