I don't understand why this is necessary. Why not use the API? Related to commit 1a0955902121a00031c3ddec0a84628bbac5d432.