Adding code for achievements