Fixed the sleep before trying to change pin data.