Handle dynamically added inputs

This should fix #166 

Didn't know if you wanted the built files in a PR or not. Separated commits so that it can be easily removed if needed.