Remove unset variable
Add function to return seconds
Simplify checking for wrong values, display output on data being updated