Have written another analysis script (easier than changing yours)