Recursive function now working. Implemented it for hours and minutes. TODO implement recursive function for seconds.