Fixes #1 - Rewrite script to use new API routes. Old routes were deprecated.