Trying to make pin work