Algorithm processing now working fully apart from loading from file