Changed pins to a variable