Add Select and fix a bug

- Add support for select
- Fix a bug with default time