Fixed add item bug by removing overcomplicated function.