Fixed issue with undefined pins variable.