Very initial implementation of smart completion