Rewrite of the API, set vars during construct