Simplified prehash.php