Methods in lib.php, refactoring code
New strings added