Wow thanks for all the quick responses. I will use a the looping pointer trick for Problem 1 Thus I will never have to shuffle. I will use the subtract oldest value and add newest value for Problem 2. Thus I will never have to do a large addition loop. Thanks everyone Peter _______________________________________________________________________ This mailing list is neither sponsored nor endorsed by Invensys Process Systems (formerly The Foxboro Company). Use the info you obtain here at your own risks. Read http://www.thecassandraproject.org/disclaimer.html foxboro mailing list: //www.freelists.org/list/foxboro to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave