WIP - Adding stages json api