Added stop_type in srv file. Added some brains to the node.