Cloned the menubar script