Added checkExists() and inserted code into addPosition() to make use of checkExists().