"Run Once" function stolen from Awesome Wiki