Added double support to network layer.