Adding pin variable back in