Added a max limit for proton number.