Adding marshalling methods