Bits and pieces that I needed for building a forum