Add pin read/write methods