Added pin configuration code