This cries for using complete(). See python snippets.