Changed update script hierarchy, added script for sources count