"Fixed some stuff and added the core loop