Major refactor of p90.py to include better unit conversion.