Implements add- and remove- functionality