Removed redundant calls to getPin