Corrected error and added pin