Remove all the named arguments stuff. Check that capacity is a positive number