Adding timer var
Adding error message output