Add a helper to automatically parse parameters. Fix #10