Recent resident function partially implemented. Need to finish the
adding a resident functionality next.