Converted to using pick for serialization.