Missing 'end function'.