A landlord is seeking advice after a tenant has failed to pay rent for several months, only covering utility bills. The landlord has a written agreement and has invested significantly in the property's maintenance. They wish to retain the security deposit to cover outstanding rent and are unsure of the best course of action.