Adding title logic.