Add flagrun module
(please don't read the source code, really crappy)