Allow input choosing.
Add timing output.