Adds check for non positive integer for capacity on build