Pinmode states added