Fixing files, adding counter