Added functions for checking/setting autofocus mode.