Allow specification of serialized or not when initializing the class.