[feature] Stabilising API call by copying only API parts we need.
[refactor] Separating code out.