added analysed flag && ensured that sources that are analysed are not analysed again