Added serialization for passing data by intent