Add logic to README