Added logging to console with timestamp