Fix race condition. Better prompts.

Should fix #16.