Improved inputs (Date). Better error handling.