Added default capacity & raise error