Changed size mechanism to be more accurate.