Wrote example modular input, and updated API to make it cleaner.