Put complexity in wrapper function