Change to use of constants for pin usage