Better error handling.
Add configurable stacktime and configurable date timestamp.