Simplify 'pin' logic