Added navFunc and autoNav