Working version with logging into excel worksheet