Refactor to submitTransaction, depricate updateAllFiles until further notice