Will update the API (replace 0,1,2,3,4 by meaningful values) and then this PR should be updated.