Added Tesla API code