Added time consideration for fewestHops|not tested