Using application based timestamps

Also:
- Use function for timestamp conversion
- Fixed typo