Generate standalone file. Fixes #2