Base code for the discard pool