if you're building this script from the ground up ...
# suitescript
c
if you're building this script from the ground up i also would suggest doing it as a 2.0 map/reduce script