Remove unused code, obsolete functions and records; skip tests on tiled algorithm
Handle getting and updating agents yet nonexistent