Add some common code.