Attempt at updating macro to take format logs