Pulled out log logic.