@danberindei +1, this code is duplicated between the two methods.