Refactored date to own function and added timer to host log