No more sml warning for function