Revision of achievements.php