Changed the pin directions for proper routing