Fixed the bugs that stopped it from previously running