A bit more menu rendering code.