Added the core code and counted data