Add function that computes size, considering padding.