Fixed potential culture issues from int.Parse().