Adding dynamic pathing support (not finished)