Make menu creation dynamic.