Update lib.php with changes and align code for performance output