Setting up for serialization.