Changed autoincrementing value to be a private variable