Added to set mode of gpio