Use function! instead of function.