95% finalized system.php, still need to add other cases.