Manual copy from https://github.com/jbfriedrich/casper-menu