Moved billing scripts to independent file