Restructured for firebase deploy.