Add serializer for Command