Testing for function never returns true. Replaced with autocmd.