Clone from https://bitbucket.org/rafaelgg/slmenu