Beginning of the rewrite for the Lightning API.