Added PMI and other relevant functions. Things are now useable.