Added basic support for command completion.