Adding support for Astar
Fix to hide weight from Astar