Added validation to share size.