Add missing dependencies
Add preference and inputendpoint