Fixed to use string representation of time where possible.
Fixed to show errors correctly.