Added from https://github.com/xezpeleta/LeaseInfo/blob/master/LeaseInfo.py