Adds maximum route checking
Handling memory and trying to optimize