Working PIN Reset

I fixed pin reset issues. It now works perfectly by storing data in a
temp array, then removing the data once its done.