First version of analyser script