Changed users.length to users.length-1 so it doesn't try to go too far.