Passing options to serialize