Updating performance for larger code files, however not perfected yet.