added autoFocusOnce() function.