Potential shaped RMax added.