Autodetect latest inputs, improve intellij setup
Add more logging about which input is used